<?php echo $head?>
<link rel="stylesheet" href="/md/examples/css/style.css" />
<link rel="stylesheet" href="/md/css/editormd.css" />
<link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />


<section id='content'>
    <div class='container-fluid'>
        <div class='row-fluid' id='content-wrapper'>
            <div class='span12'>
                <div class='page-header'>
                    <h1 class='pull-left'>
                        <i class='icon-dashboard'></i>
                        <span>文章发布</span>
                    </h1>
                </div>
                <div id="layout">
                    <header>
                        <h1>Simple example</h1>
                    </header>
                    <div id="test-editormd">
                <textarea style="display:none;">[TOC]
#### Disabled options
</textarea>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
</div>

<script src="/md/examples/js/jquery.min.js"></script>
<script src="/md/editormd.amd.js"></script>
<script type="text/javascript">
    var testEditor;

    $(function() {
        testEditor = editormd("test-editormd", {
            width   : "90%",
            height  : 640,
            syncScrolling : "single",
            path    : "/md/lib/"
        });

        /*
         // or
         testEditor = editormd({
         id      : "test-editormd",
         width   : "90%",
         height  : 640,
         path    : "../lib/"
         });
         */
    });
</script>
</body>
</html>